<div style ="padding: 10px">			
	Lọc theo năm :        
        <select onchange=" $.ajax({ url: '/user_detail/changeYearPaid?phone=<?php echo $phone ?>&year='+this.options[this.selectedIndex].value, success: function(data) { $('#paid_list').html(data); } });">
            <?php if(count($timePaids) > 1):?>
                <?php
                    foreach($timePaids as $timePaid):
                    if($timePaid['year'] == $year):
                ?>
                        <option selected="" value="<?php echo $timePaid['year'] ?>"><?php echo $timePaid['year'] ?></option>
                    <?php else: ?>
                        <option  value="<?php echo $timePaid['year'] ?>"><?php echo $timePaid['year'] ?></option>
                    <?php endif ?>
                <?php;endforeach;?>
             <?php endif ?>
        </select>
</div>
<?php #echo "<pre>";print_r($contents); ?>

<table class="user-infor" cellpadding="0">
	<tr>
		<th width="200">Ngày trả thưởng</th>
		<th>Số tiền (VND)</th>		
	</tr>
	<?php if(!is_array($contents) || count($contents)<1):?>
            <tr><td colspan="2" style="text-align: center;"> Không có kết quả nào</td></tr>
	<?php else: ?>
            <?php $i=0;foreach($contents as $content):?>
            <tr class="user-row<?php echo ($i%2)?>">
                    <td><?php echo $content['paidDate']?></td>
                    <td><?php echo $content['bonus']?></td>
            </tr>
            <?php $i++;endforeach;?>
        <?php endif ?>
</table>